'''super'''

class User:
    def __init__(self,name):
        self.name = name
       
    def login(self):
        print(self.name,'---logining...')

class Student(User):
    def __init__(self,name,num):
        super().__init__(name)
        self.num=num
    def display(self):
        print(f'name is {self.name}----num is {self.num}')

class Teacher(User):
    def __init__(self,name,worknum):
        super().__init__(name)
        self.worknum=worknum
    def dis(self):
        print(f'name is {self.name}----num is {self.worknum}')

st=Student(name='Peter',num="123")
st.login()

tea=Teacher(name="Gogo",worknum='888')
tea.login()
tea.dis()

